<%-- 
    Document   : LoginCheck
    Created on : Nov 24, 2013, 5:05:44 PM
    Author     : Renia
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
        String username=request.getParameter("name");
        String password=request.getParameter("password");
        
        if((username.equals("admin") && password.equals("admin")))
            {
            session.setAttribute("name",username);
            response.sendRedirect("HalamanUtamaAdministrator.jsp");
            }
        else
            response.sendRedirect("LoginAdministrator.jsp");
        %>
    </body>
</html>
